<?php
//----------------------------------------------全局参数 
define('INIT', 'df');
define('DF', 'http://www.dfer.top');
define('C_IP', $_SERVER['REMOTE_ADDR']);//客户端ip
define('URL', $_SERVER['HTTP_REFERER']);//当前页面完整url
define('TIMESTAMP', time());  //当前时间
define('ROOT', $_SERVER['DOCUMENT_ROOT'].'/');  //网站根目录
define('IP', $_SERVER['REMOTE_ADDR']);  //访问者ip

Session_Start();//开启缓存
//-----------------------------------控制器共用
require ROOT."share/config.php";
require_once ROOT.'module/functions.php';//基础函数
$RTurl="/";
$m=m('model');  //常用方法文件 
$_df = $_GP= array();   //全局参数df，以及获取传参的get和Post
$_GP = array_merge($_GET, $_POST, $_GP);//合并数组
$_gp =$m->ihtmlspecialchars($_GP);

//公用参数
$_df['url']=htmlspecialchars_decode(SITE.'index.php?'.htmlspecialchars($_SERVER['QUERY_STRING']));//获取当前url
$_df['logo']=DF."favicon.png";
$_df['author']='谷雨陈';
$_df['qq']='3504725309';



//VAR_DUMP(SITE);




?>